import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import '@/icons';
import '@/icons/iconfont.js';
import '@/styles/common.css';
import directive from '@/globalAPI/directive.ts';
import globalProperties from '@/globalAPI/globalProperties.ts';
// @ts-ignore
import ECharts from "vue-echarts";

import "echarts/lib/component/title";
import "echarts/lib/component/toolbox";
import "echarts/lib/component/tooltip";
import "echarts/lib/component/grid";
import "echarts/lib/component/legend";
import "echarts/lib/chart/bar";
import "echarts/lib/component/markLine";
import "echarts/lib/component/markPoint";

import "echarts/lib/chart/line";
import "echarts/lib/chart/bar";
import "echarts/lib/chart/pie";


const app = createApp(App);

app.use(store);
app.use(router);
app.use(globalProperties);
app.use(directive);
app.component("chart", ECharts);


app.mount('#app');


